
<include file="Public:head" />
<script>
    $(function() {
        checkMobileCart('{$is_mobile}');
    })
</script>
<div id="wrap">
    <!--end of header-->
    <div id="container" class="clearfix">
        <div id="attentionInfo" class="clearfix">
            <div class="attention br8 rest">
                <p id="shopState"></p>
            </div>
        </div>
        <div id="school">
            {$type=1|getAreaName}
            <a href="__APP__/?type=clean">[切换位置]</a> <span>/</span> 
            <em id="shop" data-url="{:U('Area/detail',array('id'=>$id))}">{$detail.name}</em>
        </div>
        <!--        <div id="rank" class="clearfix">
        
                    <p class="fr fr_Satisfaction" style="position: relative; z-index: 998;">
                        <span class="satis">总体满意度：<em>4.0</em></span> 
                        <span class="rank">
                            排名：<i>2</i>
                            <i style="color: #22AC38; font-size: 20px;">/</i>
                            <i style="color: #22AC38;">30</i>
                        </span>
                        <span class="blue" id="detail" onclick="$('#detail_table').show()">详情></span>
                    </p>
                    <div id="detail_table" style="display: none">
                        <table cellpadding="0" cellspacing="0" class="mt10 ml10" width="262px">
                            <tbody>
                                <tr>
                                    <td class="col1">
                                        口味
                                    </td>
                                    <td class="col2">
                                        <span class="sc_o"><span class='sc_in level5'></span></span><em>4.1</em>
                                    </td>
                                    <td class="col3">
                                        <span class="pos">排名：</span><em>3</em><span>/30</span>
                                    </td>
                                </tr>
        
                                <tr >
                                    <td class="col1">
                                        份量
                                    </td>
                                    <td class="col2">
                                        <span class="sc_o"><span class='sc_in level4'></span></span><em>4.0</em>
                                    </td>
                                    <td class="col3">
                                        <span class="pos">排名：</span><em>2</em><span>/30</span>
                                    </td>
                                </tr>
        
                                <tr >
                                    <td class="col1">送餐速度</td>
                                    <td class="col2">
                                        <span class="sc_o"><span class='sc_in level4'></span></span><em>3.9</em>
                                    </td>
                                    <td class="col3">
                                        <span class="pos">排名：</span><em>5</em><span>/30</span>
                                    </td>
                                </tr>
        
                                <tr style='display:none'>
                                    <td class="col1">
                                        总分
                                    </td>
                                    <td class="col2">
                                        <span class="sc_o"><span class='sc_in level4'></span></span><em>4.0</em>
                                    </td>
                                    <td class="col3">
                                        <span class="pos">排名：</span><em>2</em><span>/30</span>
                                    </td>
                                </tr>
        
                            </tbody>
                        </table>
                        <p id="hide_detail" class="fr blue" onclick="$('#detail_table').hide()">收起<p>
                    </div>
        
                </div>-->

        <!--end of shopOverall-->
        <div class="clearfix">
            <div id="left" class="shadow s_menu">

                <div id="s_tab">
                    <a href="{:U('Area/detail',array('id'=>$id))}">看菜单</a>
                    <a href="{:U('Area/comments',array('id'=>$id))}" class="active">累积评价</a>
                    <a href="{:U('Area/messages',array('id'=>$id))}">给餐厅留言</a>
                </div>
                <div id="tab_comment">
                    <empty name="lists">
                        <div id="noinfo"> 该餐厅还没有评价 </div>
                        <else/>
                        <foreach name="lists" item="row">
                            <div class="sc_list">
                                <div class="sc_list_l">
                                    <p class="row1">
                                        <span class="sc_style">综合评价</span>{$row['speed']+$row['delicious']+$row['full']|getCommentTotal=###}</p>
                                    <p>
                                        <span class="sc_style">送餐速度</span><span class="sc_o"><span class='sc_in level{$row.speed|getIntval=###}'></span></span><em>{$row.speed}</em></p>
                                    <p>
                                        <span class="sc_style">口味</span><span class="sc_o"><span class='sc_in level{$row.delicious|getIntval=###}'></span></span><em>{$row.delicious}</em></p>
                                    <p>
                                        <span class="sc_style">份量</span><span class="sc_o"><span class='sc_in level{$row.full|getIntval=###}'></span></span><em>{$row.full}</em></p>

                                </div>
                                <div class="sc_list_r">
                                    <p>
                                        <span class="time">{$row.addtime|tranTime=###}</span>
                                        <span>{$row.uid|getSingleField=###,'user','name'}</span>
                                    </p>
                                    <p class="sc_info">{$row.comment}</p>
                                    <p class="name">
                                    <foreach name="row['sub']" item="row">
                                        {$row.gname} ×{$row.gnum} 
                                    </foreach>
                                    </p>
                                </div>
                            </div>
                        </foreach>
                        <div class="clear"></div>
                        <div class="page">{$page}</div>
                    </empty>
                </div>

            </div>
            <!--end of left-->
            <include file="Public:right" />
            <div class="clear"></div>
        </div>
    </div>
    <include file="Public:foot" />